<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="com.cinema.data.FilmInfo, com.cinema.data.Schedule, java.util.Date, com.cinema.data.Ticket" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Do An Mon Hoc</title>

<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
<style type="text/css">
@import "/css/gallery.css";
</style>

</head>
<body>
<div id="container">
	<div id="banner">
	<embed src="http://iss2011.googlecode.com/hg/war/images/BANNER.swf" quality="high" type="application/x-shockwave-flash" wmode="transparent" 
	width="960" height="271" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always"></embed>
	</div>	
	
	<!-- end #banner -->
	<div id="menu">
		<div id="navbar" align="center">
			<ul id="nav">
				<li class="top"><a href="index.jsp" class="top_link"><span>TRANG CHỦ</span></a></li>
				<li class="top"><a href="currentFilm" class="top_link"><span>ĐẶT VÉ</span></a></li>
				<li class="top"><a href="#" class="top_link"><span class="down">PHIM</span></a>
					<ul class="sub">
						<li><a href="currentFilm">Đang Chiếu</a></li>
						<li><a href="comingSoon">Sắp chiếu</a></li>						
					</ul>
				<li class="top"><a href="KhuyenMai.html" class="top_link"><span>KHUYẾN MÃI</span></a></li>
				<li class="top"><a href="FAQ.html" class="top_link"><span>F.A.Q</span></a></li>
			</ul> <!-- End NAV-->
		</div> <!--End NavBar-->
	</div>
	<!-- end #menu -->
<%
	FilmInfo film = (FilmInfo)session.getAttribute("film");
	Schedule sched = film.getSchedule();
	Date[] date = sched.getDateList();
	int selectdate = Integer.parseInt(request.getParameter("selectdate"));
	session.setAttribute("selectdate", selectdate);
	String selecttime = request.getParameter("selecttime");
	Ticket t = (Ticket)session.getAttribute("ticket");
	t.setBookday(date[selectdate]);
	t.setBooktime(selecttime);
	session.setAttribute("ticket", t);
	System.out.println(selectdate);
	System.out.println(selecttime);
%>
	<div id="page-content">
		<div class="page-right">
			<p style="font-size:30px; color:red;">BƯỚC 1: Chọn suất Chiếu</p>
			<form action="booking3.jsp" method="post">
			<p style="font-size:30px; color:red;">BƯỚC 2: Chọn Vé</p>
			<select name="tickettype">
				<option value="">Loại Vé</option>
				<option value="1">Loại thường</option>
				<option value="2">Loại VIP</option>
				<option value="3">Loại Combo</option>
			</select>
			<br />
			<select name="qty">
			<option value="">Số Lượng</option>
			<option value="1">1</option>
			<option value="2">2</option>
			<option value="3">3</option>
			</select>
			<input type="submit" value="Next" />
			</form>
		</div>
	</div>
</div>
</body>
</html>